﻿<Page
    x:Class="Antares.VIEWs.SettingPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Antares.VIEWs"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     Width="346"
    KeyDown="PageKeyDown"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Page.Transitions>
        <TransitionCollection>
            <PaneThemeTransition Edge="Right"/>
        </TransitionCollection>
    </Page.Transitions>

    <Page.Resources>
        <Style x:Key="CommonTextStyle" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Segoe UI"/>
            <Setter Property="FontSize" Value="24"/>
            <Setter Property="FontWeight" Value="ExtraLight"/>
            <Setter Property="Foreground" Value="#282828"/>
        </Style>
        <Style x:Key="CommonTextStyle2" TargetType="RadioButton">
            <Setter Property="FontFamily" Value="Segoe UI"/>
            <Setter Property="FontSize" Value="18"/>
            <Setter Property="FontWeight" Value="ExtraLight"/>
            <Setter Property="Foreground" Value="#282828"/>
        </Style>
    </Page.Resources>
    
    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="9*"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Background="#FF3C81BA">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1.1*"/>
                <ColumnDefinition Width="4*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="1"  TextWrapping="Wrap" Text="{Binding Resource[MainTitle_7]}"  FontSize="36" FontFamily="Segoe UI Light" Foreground="White" VerticalAlignment="Center"/>
            <Button Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource AppBarButtonStyle}"
                 FontFamily="Segoe UI Symbol" FontSize="18" Foreground="White"
                 Padding="0,0,0,0" 
                 Content="&#xE112;" Width="auto" Background="#B33C81BA" Height="65" Tapped="backButton_Tapped" />
        </Grid>

        <StackPanel Grid.Row="1" Background="White" Margin="25,5,0,0">
            <TextBlock Margin="0,20,0,0" Text="{Binding Resource[Sttig_Units]}" Style="{StaticResource CommonTextStyle}"/>
            <StackPanel Orientation="Horizontal">
                <RadioButton x:Name="F_Radio" GroupName="Tempurature" Checked="RadioButton_Checked_1" Style="{StaticResource CommonTextStyle2}" Content="{Binding Resource[Sttig_F]}"/>
                <RadioButton x:Name="C_Radio" GroupName="Tempurature" Checked="RadioButton_Checked_2" Margin="15,0,0,0" Style="{StaticResource CommonTextStyle2}" Content="{Binding Resource[Sttig_C]}"/>
            </StackPanel>

            <TextBlock Margin="0,20,0,0" Text="{Binding Resource[Sttig_Lunar]}" Style="{StaticResource CommonTextStyle}"/>
            <StackPanel Orientation="Horizontal">
                <RadioButton x:Name="On_Radio" GroupName="Calendar" Checked="RadioButton_Checked_3" Style="{StaticResource CommonTextStyle2}" Content="{Binding Resource[Sttig_On]}"/>
                <RadioButton x:Name="Off_Radio" GroupName="Calendar" Checked="RadioButton_Checked_4" Margin="15,0,0,0" Style="{StaticResource CommonTextStyle2}"  Content="{Binding Resource[Sttig_Off]}"/>
            </StackPanel>
            <!--Content goes here-->
        </StackPanel>
    </Grid>
</Page>